package cn.anecansaitin.jep.parser.ast.node.statement;

import cn.anecansaitin.jep.Token;
import cn.anecansaitin.jep.parser.ast.node.expression.Expression;

public class Assignment extends  Statement{
    private final Expression target;
    private final Token operator;
    private final Expression value;

    public Assignment(Expression target, Token operator, Expression value,int line, int column) {
        super(line, column);
        this.target = target;
        this.operator = operator;
        this.value = value;
    }

    public Expression target() {
        return target;
    }

    public Token operator() {
        return operator;
    }

    public Expression value() {
        return value;
    }
}